package com.cctc.framework.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cctc.framework.dao.TreeDao;
import com.cctc.framework.domain.Tree;
import com.cctc.framework.services.TreeService;

@Service("treeService")
public class TreeServiceImpl implements TreeService
{
    @Autowired
    private TreeDao treeDao;
    
//    @Override
//    public List<Tree> getTreeObject()
//    {
//        return treeDao.getTreeObject();
//    }

    @Override
    public List<Tree> getTreeObject(String treeName)
    {
        return treeDao.getTreeObject(treeName);
    }

    @Override
    public List<Tree> getTreeObject(int parentId)
    {
        return treeDao.getTreeObject(parentId);
    }
    
}
